using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SmartLink.Domain;
using System.ComponentModel.DataAnnotations;

namespace SmartLink.DTOS.Permission
{
    /// <summary>
    /// 角色
    /// </summary>
    public class RoleDTO
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        [Description("编号")]
        public string No { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>		
        [Description("角色名称")]
        [Required(ErrorMessage = "角色名称不能为空"), StringLength(10, MinimumLength = 1, ErrorMessage = "角色名称不能超过10个字")]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色说明
        /// </summary>		
        [Description("角色说明")]
        public string RoleDesc { get; set; }

        /// <summary>
        /// 启用标志
        /// </summary>
        [Description("启用标志")]
        public int Enabled { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        [Description("创建人名称")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        public DateTime CreateTime { get; set; }
    }
}
